<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8" %>
<% 
	String context = request.getContextPath(); 
%>
<html>
	<head>
		<title>单任务节点</title>
		<link rel="stylesheet" type="text/css" href="<%=context %>/Source/lib/ligerUI/skins/ligerui-icons.css" />
		<link rel="stylesheet" type="text/css" href="<%=context %>/Source/lib/ligerUI/skins/Aqua/css/ligerui-all.css" />
		<link rel="stylesheet" type="text/css" href="<%=context %>/gooflow/GooFlow/codebase/GooFlow2.css"/>
  		<link rel="stylesheet" type="text/css" href="<%=context %>/gooflow/default.css"/>
  		<script>
  			var path = '<%=context %>';
  			var _path = path+"/flow/processParameter"
  			var currentNodeId= '${currentNodeId}';
  			var processId= '${processId}';
  		</script>
</head>
<body>
<table style="border-collapse:separate; border-spacing:10px;margin:10px auto;">
  <tr>
    <td>当前节点：</td>
    <td>
        <input type="hidden" id="currentNodeId" name="currentNodeId" style="width: 170px;" value="${currentNodeId}" />
        <input type="text" id="currentNodeName" class="liger-textbox" name="currentNodeName" style="width: 170px;background:#ffffff;" disabled="disabled" />
    </td>
  </tr>
  <tr>
    <td>下个节点：</td>
    <td>
      <select id="node" class="liger-textbox" style="width: 173px;">
          <option value="">--选择下步节点--</option>
      </select>
    </td>
  </tr>
  <tr>
    <td>执行方法：</td>
    <td>
      <input type="hidden" id="functionId" name="functionId" />
      <input type="text" id="functionName" name="functionName" />
    </td>
  </tr>
  <tr>
    <td colspan="2">
      <input type="checkbox" checked="checked" id="allowStop" />允许流程发起人终止&nbsp;
      <input type="checkbox" checked="checked" id="allowRecall" />能否被上部撤回&nbsp;
      <input type="checkbox" checked="checked" id="allowHang" />允许挂起流程
    </td>
  </tr>
  <tr>
    <td>编辑页面：</td>
    <td>
      <input type="hidden" id="editPageId" name="editPageId" />
      <input type="text" id="editPageName" name="editPageName" />
    </td>
  </tr>
  <tr>
    <td>查看页面：</td>
    <td>
      <input type="hidden" id="viewPageId" name="viewPageId" />
      <input type="text" id="viewPageName" name="viewPageName" />
    </td>
  </tr>
</table>
<div id="navtab1" style="width: 99%; overflow: hidden;margin:0 auto; border: 1px solid #D3D3d3;" class="liger-tab">

  <div tabid="home" title="任务执行人" lselected="true" style="padding:10px;">
   <!--  <input type="radio" id="post" name="fkType" value="group" checked="checked" />岗位&nbsp;&nbsp; -->
    <input type="radio" id="role" name="fkType" value="group"  checked="checked"/>角色&nbsp;&nbsp;
    <input type="radio" id="organizational" name="fkType" value="group" />组织机构&nbsp;&nbsp;
    <input type="radio" id="executive" name="fkType" value="user" />自定义执行人&nbsp;&nbsp;
    <input type="radio" id="promoter" name="fkType" value="user" />流程发起人
    <div>
        <%--角色--%>
        <div class="post" style="margin-top:10px;"><!-- display:none; -->
            <div>
                <input type="button" value="添加" id="addRole" onclick="f_addRloe()" style="padding:2px 10px;border:1px solid #CCCCCC;border-radius:3px;" />&nbsp;&nbsp;
                <input type="button" value="删除" id="deleteRole" onclick="f_deleteRole()" style="padding:2px 10px;border:1px solid #CCCCCC;border-radius:3px;" />
            </div>
            <div id="mainGridRole"style="margin-top:10px;">

            </div>
        </div>
        <%--组织机构--%>
        <div class="post" style="margin-top:10px;display:none;">
            <div>
                <input type="button" value="添加" id="addOrganization" onclick="f_addOrganization()" style="padding:2px 10px;border:1px solid #CCCCCC;border-radius:3px;" />&nbsp;&nbsp;
                <input type="button" value="删除" id="deleteOrganization" onclick="f_deleteOrganization()" style="padding:2px 10px;border:1px solid #CCCCCC;border-radius:3px;" />
            </div>
            <div id="mainGridOrganization"style="margin-top:10px;">

            </div>
        </div>
        <%--自定义执行人--%>
        <div class="post" style="margin-top:10px;display:none;">
            <div>
                <input type="button" value="添加" id="addUser" onclick="f_addUser()" style="padding:2px 10px;border:1px solid #CCCCCC;border-radius:3px;" />&nbsp;&nbsp;
                <input type="button" value="删除" id="deleteUser" onclick="f_deleteUser()" style="padding:2px 10px;border:1px solid #CCCCCC;border-radius:3px;" />
            </div>
            <div id="mainGridUser"style="margin-top:10px;">

            </div>
        </div>
        <%--流程发起人--%>
        <div class="post" style="margin-top:10px;display:none;text-align: center;">备注：由流程发起人执行任务</div>
    </div>
  </div>

  <div title="条件控制" showclose="true"style="padding:10px;">
    <input type="button" value="添加" id="addConditions" onclick="conditionsDialog()" style="padding:2px 10px;border:1px solid #CCCCCC;border-radius:3px;" />&nbsp;&nbsp;
    <input type="button" value="删除" id="delete" onclick="f_deleteExpress()" style="padding:2px 10px;border:1px solid #CCCCCC;border-radius:3px;" />
      <div id="mainGridConditions"style="margin-top:10px;">

    </div>
  </div>

    <div title="通知" showclose="true"style="padding:10px;">
        <!-- <input type="radio" id="noticeHost" name="notice" value="position" checked="checked" />通知岗位&nbsp;&nbsp; -->
        <input type="radio" id="noticeRole" name="notice" value="role" checked="checked"/>通知角色&nbsp;&nbsp;
        <input type="radio" id="noticeExecutive" name="notice" value="user" />通知执行人&nbsp;&nbsp;
        <input type="radio" id="noticePromoter" name="notice" value="user" />通知发起人
        <div>
            <%--通知岗位--%>
            <!-- <div class="notice" style="margin-top:10px;" >
                <table style="border-collapse:separate; border-spacing:10px;">
                    <tr>
                        <td>通知类型：</td>
                        <td>
                            <input type="text" id="noticeHostWay" class="liger-textbox" name="noticeWay" style="width: 170px;background:#ffffff;" value="Email" disabled="disabled" />
                        </td>
                    </tr>
                    <tr>
                        <td>通知标题：</td>
                        <td>
                            <input type="text" id="noticeHostTitle" class="liger-textbox" name="noticeTitle" style="width: 170px;" />
                        </td>
                    </tr>
                    <tr>
                        <td valign="top">通知内容：</td>
                        <td>
                            <textarea id="noticeHostContent" name="noticeContent" ></textarea>
                        </td>
                    </tr>
                </table>
                <div>
                    <input type="button" value="添加" id="addNoticeHost" onclick="f_addNoticeHost()" style="padding:2px 10px;border:1px solid #CCCCCC;border-radius:3px;" />&nbsp;&nbsp;
                    <input type="button" value="删除" id="deleteNoticeHost" onclick="f_deleteNoticeHost()" style="padding:2px 10px;border:1px solid #CCCCCC;border-radius:3px;" />
                </div>
                <div id="mainGridNoticeHost"style="">

                </div>

            </div> -->
            <%--通知角色--%>
            <div class="notice" style="margin-top:10px;"><!-- display:none; -->
                <table style="border-collapse:separate; border-spacing:10px;">
                    <tr>
                        <td>通知类型：</td>
                        <td>
                            <input type="text" id="noticeRoleWay" class="liger-textbox" name="noticeWay" style="width: 170px;background:#ffffff;" value="Email" disabled="disabled" />
                        </td>
                    </tr>
                    <tr>
                        <td>通知标题：</td>
                        <td>
                            <input type="text" id="noticeRoleTitle" class="liger-textbox" name="noticeTitle" style="width: 170px;" />
                        </td>
                    </tr>
                    <tr>
                        <td valign="top">通知内容：</td>
                        <td>
                            <textarea id="noticeRoleContent" name="noticeContent" ></textarea>
                        </td>
                    </tr>
                </table>
                <div>
                    <input type="button" value="添加" id="addNoticeRole" onclick="f_addNoticeRloe()" style="padding:2px 10px;border:1px solid #CCCCCC;border-radius:3px;" />&nbsp;&nbsp;
                    <input type="button" value="删除" id="deleteNoticeRole" onclick="f_deleteNoticeRole()" style="padding:2px 10px;border:1px solid #CCCCCC;border-radius:3px;" />
                </div>
                <div id="mainGridNoticeRole"style="margin-top:10px;">

                </div>
            </div>
            <%--通知执行人--%>
            <div class="notice" style="margin-top:10px;display:none;">
                <table style="border-collapse:separate; border-spacing:10px;">
                    <tr>
                        <td>通知类型：</td>
                        <td>
                            <input type="text" id="noticeUserWay" class="liger-textbox" name="noticeWay" style="width: 170px;background:#ffffff;" value="Email" disabled="disabled" />
                        </td>
                    </tr>
                    <tr>
                        <td>通知标题：</td>
                        <td>
                            <input type="text" id="noticeUserTitle" class="liger-textbox" name="noticeTitle" style="width: 170px;" />
                        </td>
                    </tr>
                    <tr>
                        <td valign="top">通知内容：</td>
                        <td>
                            <textarea id="noticeUserContent" name="noticeContent" ></textarea>
                        </td>
                    </tr>
                </table>
                <div>
                    <input type="button" value="添加" id="addNoticeUser" onclick="f_addNoticeUser()" style="padding:2px 10px;border:1px solid #CCCCCC;border-radius:3px;" />&nbsp;&nbsp;
                    <input type="button" value="删除" id="deleteNoticeUser" onclick="f_deleteNoticeUser()" style="padding:2px 10px;border:1px solid #CCCCCC;border-radius:3px;" />
                </div>
                <div id="mainGridNoticeUser"style="margin-top:10px;">

                </div>
            </div>
            <%--通知发起人--%>
            <div class="notice" style="margin-top:10px;display:none;text-align: center;">
                <table style="border-collapse:separate; border-spacing:10px;">
                    <tr>
                        <td>通知类型：</td>
                        <td>
                            <input type="text" id="noticeWay" class="liger-textbox" name="noticeWay" style="width: 170px;background:#ffffff;" value="Email" disabled="disabled" />
                        </td>
                    </tr>
                    <tr>
                        <td>通知标题：</td>
                        <td>
                            <input type="text" id="noticeTitle" class="liger-textbox" name="noticeTitle" style="width: 170px;" />
                        </td>
                    </tr>
                    <tr>
                        <td valign="top">通知内容：</td>
                        <td>
                            <textarea id="noticeContent" name="noticeContent" ></textarea>
                        </td>
                    </tr>
                </table>
            </div>
        </div>
    </div>
</div>
</body>
	<script src="<%=context %>/gooflow/jquery.min.js"></script>
	<script src="<%=context %>/Source/lib/ligerUI/js/ligerui.all.js"></script>
	<script src="<%=context %>/gooflow/GooFlow/data.js"></script>
	<script src="<%=context %>/gooflow/GooFunc.js"></script>
	<script src="<%=context %>/gooflow/json2.js"></script>
	<script src="<%=context %>/gooflow/GooFlow/codebase/GooFlow.js"></script>
	<script src="<%=context %>/flow_js/userTaskNode.js"></script>
</html>
